import requests

import series_key

url = "http://localhost:8083/query_task/create"

resp = requests.post(url, data={
    'variable': series_key.variable_name2id['Temperature'],
    'pressure': series_key.pressure_name2id['1'],
    'start_time': 283996800,
    'stop_time': 283996800,
    'lat_start': 0,
    'lat_stop': 10,
    'long_start': 0,
    'long_stop': 10
})
print(resp.status_code, resp.text)
